using System;
using System.Collections.Generic;
using System.Text;

namespace Colman.Rpg.Messaging
{
    /// <summary>
    /// Represents a response to a query for the player's information.
    /// </summary>
    [Serializable]
    public class PlayerInformationResponse : ResponseMessage
    {
        /// <summary>
        /// Creates a new instance of <see cref="PlayerInformationResponse" />.
        /// </summary>
        /// <param name="player">Represents the player's information object.</param>
        [System.Diagnostics.DebuggerStepThrough]
        public PlayerInformationResponse(Player player)
            : base(ResponseDestination.Requester)
        {
            this.player = player;
        }

        #region Player Player { get; } (player)
        private Player player;

        /// <summary>
        /// Gets the player's information object.
        /// </summary>
        public Player Player
        {
            [System.Diagnostics.DebuggerStepThrough]
            get
            {
                return this.player;
            }
        }
        #endregion
    }
}
